"""djangoProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.conf import settings
from django.contrib import admin
from django.urls import path, include, re_path
from django.views import static
from djangoProject import views
from job import views as views_job

urlpatterns = [
    path('admin/', admin.site.urls, name="admin0"),
    path('login/', views.login, name="login"),
    path('logout/', views.logout, name="logout"),
    path('restart/', views.restartPriject, name="restart"),
    path('', views.index),
    path('Main/', views.index),
    path('main/', views_job.main, name="main"),
    path('downFile/', views.file_down, name="downFile"),
    re_path(r'^static/(?P<path>.*)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='static'),
    path('job/', include('job.urls'), name='job'),
    path('markdown/', include('markdown.urls'), name='markdown'),
    # path('upgrade/', include('upgradeTool.urls'), name='upgrade'),
]


admin.site.site_header = "全风工具服务集后台管理"
admin.site.site_title = "全风工具服务集后台管理"
admin.site.index_title = "允许编辑配置的数据表"